package com.entity;

/**
 * MyThread
 *
 * @author byc
 * @date 2022-04-21
 */
public class MyThread extends Thread{
    public void run(){
        System.out.println("MyThread 线程开始");
        for (int i = 0; i < 10; i++) {
            System.out.println(i + "a");
            try {
                sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println("MyThread 线程结束");
    }

}
